package Dao;

import entity.Orders;
import entity.Seat;
import entity.Train;
import entity.User;
import untils.Msg;

import java.util.ArrayList;

public interface AdminDao {
    Msg<ArrayList<User>> findAllUserData();

    Msg deleteUserData(int id);

    Msg<User> addUserData(User user1);

    Msg updateTrainsDao(Train train);

    Msg<Seat> updateSeatData(String type,Seat seat);

    Msg<ArrayList<User>> findAllAdminData();

    int findUserByPhone(String phone);

    void addAdminData(int userId);

    void deleteAdminData(int userId);

    ArrayList<Orders> findAllOrderData();

    void addTrain(Train train);

    void addSeat(Seat seat);

    void addTrainName(String trainName);


//    int findUserByPhone(String phone);
}
